#ifndef BUS_CAPACITOR_H
#define BUS_CAPACITOR_H

#include "capacitor.h"

class bus_capacitor : public capacitor
{
public:
    bus_capacitor();

    void set_min_work_vol(double v);
    void set_max_power(double w);
    void set_efficency(double n);
    void set_work_freq(unsigned int hz);
    void set_ripple_voltage(double v);

    double calculate_min_cap_value();
    double wcca(double t, double h);
    double calculate_ripple_voltage_current();

    ~bus_capacitor();


private:

    double min_voltage;           // 最小工作电压
    double max_power;             // 控制器功率
    double efficiency;            // 控制器效率
    unsigned int work_frequency;  // 载波频率
    double ripple_voltage;        // 纹波电压（V）

    double ripple_voltage_current;


};


#endif // BUS_CAPACITOR_H
